package com.cxs.chain.spring.handler;

import com.cxs.chain.spring.AbstractSpringHandler;
import org.springframework.stereotype.Component;

/**
 * @Author: cxs
 */
@Component
public class BSpringHandler extends AbstractSpringHandler {


    @Override
    public Object doHandler() {
        System.out.println("执行B的业务逻辑");
        AbstractSpringHandler nextHandler = getNextHandler();
        if (nextHandler != null) {
            return nextHandler.doHandler();
        }
        return "B处理器返回";
    }
}
